package com.example.demo.service;

import com.example.demo.entity.Book;
import com.example.demo.entity.Borrow;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface BookService {
    List<Borrow> getBorrowList();
    Map<Book, Boolean> getBookList();
    List<Book> getActiveBookList();
    Boolean addBorrow(int sid, int bid);
    Boolean returnBorrow(int id);
    Boolean addBook(String title, String desc, double price);
    Boolean deleteBook(int bid);
}
